import http from '@/config/axios'

// 首页
const indexUrl = '/v1/pc/api/waitDealWithRecord/queryMyWatiDealWithList';
// 待办事项
export const getWaitDealList = data => http.get(`${indexUrl}`, { params: data });
// 更新待办事项状态
export const updateWaitDealState = (id, state) => http.patch(`/v1/pc/api/waitDealWithRecord/updateWaitDealWithState/${id}?state=${state}`);
// 站内通知
export const getStationMessageList = data => http.get('/v1/pc/api/stationMessageRecord/queryMyStationMessageList', { params: data });
// 更新站内通知状态
export const updateStationMessageState = (id, state) => http.patch(`/v1/pc/api/stationMessageRecord/updateStationMessageState/${id}?state=${state}`);
// 质控点预警提
export const getWarningList = data => http.get(`/v1/pc/api/warningRecord/queryMyWarningList`, { params: data });
// 目标标准统计
export const getTargetList = data => http.get(`/v1/pc/api/targetStandard/queryUserTargetStandardMonitor`, { params: data });
// 质控点完成情况
export const getPointFinishList = data => http.get(`/v1/pc/api/indexQualityPointInfo/queryIndexQualityInfoStatistics`, { params: data });
// 查询用户信息和目标标准/报告/预警统计信息(只取当年)
export const getUserStatisticInfo = data => http.get(`/v1/pc/api/targetStandard/queryTargetStandardAndUserInfo`, { params: data });
// 根据ID查询目标标准
export const getTargetStandardById = id => http.get(`/v1/pc/api/targetStandardFormwork/${id}`);

// 首页tab信息
export const getUserTabs = () => http.get("/v1/pc/api/user/queryCurrentUserIndexMenuList");